<%@ page isELIgnored="false" language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body>
request:${requestScope.depts}<br/>
<c:forEach items="${requestScope.depts }" var="u">
	${u.id }-${u.name }-${u.address }-${u.phone }<br/>
</c:forEach>
	<h1>用户信息列表显示</h1>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/dept_add.jsp">增加信息</a>
	<table>
	<tr>
				<td>ID</td>
				<td>用户名</td>
				<td>密码</td>
				<td>
					<c:forEach items="${depts }" var="d">
		<tr>
			<td>${d.id }</td>
			<td>${d.name }</td>
			<td>${d.address }</td>
		    <td>${d.phone }</td>
			<td>
				<a href="${pageContext.request.contextPath}/del.do?id=${d.id}" >删除</a>
				<a href="${pageContext.request.contextPath}/dept_modify.jsp?id=${d.id}" >修改</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>